import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;

/**
 * 明明的随机数
 * 去重+排序
 * Created by JiaJia on 2019/6/19 0019.
 */
public class HuaWei003 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        while (scanner.hasNext()){
            int n=scanner.nextInt();
            Set<Integer> set=new TreeSet<>();
            while (n>0){
                set.add(scanner.nextInt());
                n--;
            }
            System.out.println(setToString(set));
        }
        scanner.close();
    }

    private static String setToString(Set<Integer> set){
        StringBuilder sb=new StringBuilder();
        for (Integer i:set) {
            sb.append(i).append("\n");
        }
        return sb.toString();
    }
}